//
//  ZXChoseController.m
//  qianke
//
//  Created by ZX on 2017/7/3.
//  Copyright © 2017年 ZX. All rights reserved.
//

#import "ZXChoseController.h"

@interface ZXChoseController ()<UITableViewDelegate,UITableViewDataSource>
/*choseTableView*/
@property(strong ,nonatomic)UITableView*tableView;
@end

@implementation ZXChoseController

- (void)viewDidLoad {
    [super viewDidLoad];
    if (_choseArr) {
        _choseArr = [[NSMutableArray array]init];
    }
    _choseArr = [NSMutableArray arrayWithObjects:@"wode", @"wode",@"wode",@"wode",@"wode",nil];
    _tableView = [[UITableView alloc]initWithFrame:CGRectMake(0, 0, ScreenWidth, ScreenHeight) style:UITableViewStylePlain];
    _tableView.delegate = self;
    _tableView.dataSource = self;
    [_tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:@"cell"];
    [self.view addSubview:_tableView];
    NSLog(@"%@",_choseArr);
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    NSLog(@"%lu",(unsigned long)_choseArr.count);
    return _choseArr.count;
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    UITableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:@"cell"];
    cell.textLabel.text = _choseArr[indexPath.row];
    return cell;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
